<!--{template user/header}-->
<div class="container">
<div class="nav-action">
    <!--{template user/left_side}-->
  </div>

  <div class="content-panel">
    <div class="tab">
        <a href="#" {if $op == 'works'} class="selected" {/if}>我的稿件</a>
    </div>
    <div class="tab_detail">
    <div class="action-bar">
    <form action="{$strUrl}" method="post" name="searchWorksForm" id="searchWorksForm">
        <div class="action-item">
        <input type="text" placeholder="请输入编号" class="form-control" name="intId" id="intId" value="{$intId}">
        </div>
        <div role="toolbar" class="action-item btn-toolbar">
          <div class="btn-group">
            <button class="btn btn-default" type="submit">搜索</button>
          </div>
        </div>
      </form>
      </div>
      <div class="table-responsive">
        <table class="table table-hover">
        <thead>
          <tr>
           	<th>稿件编号</th>
           	<th>任务名称</th>
           	<th>任务类型</th>
           	<th>投稿时间</th>
           	<th>状态</th>
           	<th>操作</th>
          </tr>
        </thead>
        <tbody>
        {if $arrLists}
        {loop $arrLists $k $v}
          <tr>
            <td>{$v['id']}</td>
            <td><a href="index.php?do=task&id={$v['task_id']}">{$v['task_title']}</a></td>
            <td>{$model_list[$v['model_id']][model_name]}</td>
            <td><!--{eval echo date('Y-m-d',$v['ontime'])}--></td>
            <td>{if $v['task_status']<=3}投标中{else}{if $v['status']==4||$v['status']==6}中标{else}未中标{/if}{/if}</td>
            <td>
            <a href="index.php?do=task&id={$v['task_id']}" data-title="查看" target="_blank">查看稿件</a>
            {if $v['file']}
            <a href="javascript:downWorkFile('{$v[id]}','{$v[task_id]}');void(0);" >下载附件</a>
			{/if}
            </td>
          </tr>
         {/loop}
         {else}
         	<tr>
         		<td colspan="5" class="text-center">暂无相关稿件</td>
         	</tr>
         {/if}
        </tbody>
      </table>
      </div>
      <div class="clearfix">
      	{if $strPages}
	      <ul class="pagination pagination-sm pull-right">
	       {$strPages}
	      </ul>
	    {/if}
      </div>
    </div>
  </div>
  </div>
  <!-- 我的消息 end &content-panel end -->
<!--{template user/footer}-->